package com.aynu.gulimall.order.feign;

import com.aynu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author mj
 * @version 1.0
 * @date 2021/3/21 23:05
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {
    /**
     * 根据skuId查询spu信息
     * @return
     */
    @RequestMapping("/product/spuinfo/skuId/{id}}")
    public R getSpuInfoBuSkuId(@PathVariable("id")Long skuId);
}
